<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>v-pre指令</title>
  </head>
  <body>
    <div id="root">
      <!-- v-pre指令
                1.跳过所在节点的编译过程
                2.可以利用该指令跳过没有使用指令语法、插值语法的节点，会加快编译 -->
      <h2 v-pre>我没有用插值语法</h2>
      <h2>{{name}}</h2>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>
    <script>
      new Vue({
        el: "#root",
        data: {
          name: "v-cloak",
        },
      });
    </script>
  </body>
</html>
